import request from '@/utils/request'

// 查询testTree列表
export function listTestTree(query) {
  return request({
    url: '/wms/testTree/list',
    method: 'get',
    params: query
  })
}

// 查询testTree详细
export function getTestTree(id) {
  return request({
    url: '/wms/testTree/' + id,
    method: 'get'
  })
}

// 新增testTree
export function addTestTree(data) {
  return request({
    url: '/wms/testTree',
    method: 'post',
    data: data
  })
}

// 修改testTree
export function updateTestTree(data) {
  return request({
    url: '/wms/testTree',
    method: 'put',
    data: data
  })
}

// 删除testTree
export function delTestTree(id) {
  return request({
    url: '/wms/testTree/' + id,
    method: 'delete'
  })
}

// 导出testTree
export function exportTestTree(query) {
  return request({
    url: '/wms/testTree/export',
    method: 'get',
    params: query
  })
}